﻿<table>
<tr>
<?php echo form_open('adminCourses/deleteCourses'); ?>
	<td colspan="2"><h2 class="title">Предмети</h2></td>
	<td><input type="submit" name="submit" value="Избриши селектирани" /></td>
</tr>
<tr><td colspan="2"><h2>Промени предмет</h2></td></tr>
<?php 
	foreach ($courses as $course)
	{
		echo "<tr><td colspan='2'><a href='".site_url('adminCourses/editCourse/'.$course->idCrsPk)."'>".$course->namemk."</a></td>";
		echo "<td><input type='checkbox' name=".$course->idCrsPk." value=".$course->idCrsPk." /></td></tr>";
	}	
?>
<?php echo form_close(); ?>
<tr><td colspan="2"><h2>Додади предмет</h2></td></tr>

<?php echo form_open_multipart('adminCourses/addCourse'); ?>
	<tr>
		<td>Име на предметот (македонски):</td>
		<td><input type="text" name="nameMk" id="nameMk" /></td>
	</tr>
	<tr>
		<td>Име на предметот (англиски):</td>
		<td><input type="text" name="nameEn" id="nameEn" /></td>
	</tr>
	<tr>
		<td>PDF:</td>
		<td><input type="file" name="userfile" id="userfile" /></td>
	</tr>
	<tr>
	<td colspan="2"><input type="submit" name="submit" value="Додади" /></td>
	</tr>
<?php echo form_close(); ?>

</table>